<%@ page language="java" contentType="text/html; charset=UTF-8"
		 pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common-app/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>申请书编辑</title>
	<c:if test="${empty param.include}">
		<%@ include file="/common/meta.jsp"%>
	</c:if>
	<style type="text/css">
		.color_red{
			display:none;
		}
		#content{
			width:1040px;
		}
		tr{
			white-space: normal;
			word-break: break-word;
			table-layout: fixed;
		}
	</style>
	<script type="text/javascript" src="${res}/js/proposal/irisPrpPrepare.js"></script>
	<script type="text/javascript" src="${res_app}/js/app/proposal/irisPrpPrepare.js"></script>
	<script type="text/javascript">

		var ctxpath = "${ctx}";
		var prcWin = new progressWin("${res}");//初始化遮罩层

		$(function(){
			if("${param.viewAttach}"=="true")
				$("#tab9").click();
			if("${param.auditflag}"==""||"${param.auditflag}"==null)
				$("#tab1").click();
			if("${param.auditflag}"=="edit")
				$("#tab9").click();
			/* updatePdfNotes();
            window.setInterval("checkPdfStatus()", "10000");//检验申请书的pdf */
			refreshTextArea();
			resetTitle();

			/* $("table.t_css").not("[id='finances']").not("[id='budget1']").each(function(){
                $(this).find("tr:even").addClass("li_1");
                $(this).find("tr:odd").addClass("li_2");
            }); */
			$("table.t_css").each(function(){
				$(this).find("tr").not(".cbTable tr").filter(":even").addClass("li_1");
				$(this).find("tr").not(".cbTable tr").filter(":odd").addClass("li_2");
			});
			$("table").addClass("table01");
		});
	</script>
</head>
<body>
<c:set var="xmlstr" value="${xmlData}" scope="request"/>
<x:parse xml="${xmlstr}" var="xmlData" scope="request"/>
<input type="hidden" id="childDiv" class="thickbox"/>
<input type="hidden" id="filePath" value="${ctx}/file/ajax-filedownload?fileCode=" />
<input type="hidden" id="menuId" value="${param.menuId}" />
<div id="showMessage"></div>
<div id="content">
	<div class="clear_h15"></div>
	<div class="word_box" id="mainDiv">
		<div class="bar_b">
			<security:authorize ifNotGranted="A_MENU_REVIEW_09"><c:if test="${not empty fbl.pdfViewUrl}"><a href="#" onclick="return genPdf('<iris:des3 code="${posCode}"/>','<iris:des3 code="${fbl.pdfCode}"/>');" class="yase ico_pdf">查看pdf</a></c:if></security:authorize>
			<input type="hidden" id="pdfStatus" value="${pdfStatus}" />
			<span class="right">版本号：<span name="proposal/prp_version" id="prp_version"><x:out select="$xmlData/data/proposal/prp_version" /></span></span>
		</div>
		<form method="post" id="mainForm">
			<input type="hidden" value="${grantCode}" id="grantCode"
				   name="grantCode">
			<input type="hidden" value="${posCode}" id="posCode" name="posCode">
			<input type="hidden" value="${xmlData}" id="xmlData" name="xmlData">
			<input type="hidden" value="${fbl.pdfCode}" id="pdfCode" name="pdfCode">
		</form>
		<div class="word_title">
			<c:set var="statYear" scope="request">${statYear}</c:set>
			<c:if test="${empty statYear}">
				<c:set var="statYear" scope="request"><x:out select="$xmlData/data/proposal/stat_year" /></c:set>
			</c:if>
			<input type="hidden" name="proposal/stat_year" value="${statYear}">
			<span name="proposal/sub_grant_name" ><x:out select="$xmlData/data/proposal/sub_grant_name" /></span>-项目申报书 (<span name="proposal/stat_year">${statYear}</span>年) <%-- <br/>(<span name="proposal/sub_grant_name" ><x:out select="$xmlData/data/proposal/sub_grant_name" />)</span>			 --%>
			<input type="hidden" name="proposal/sub_grant_name" value="<x:out select="$xmlData/data/proposal/sub_grant_name" />" />
			<input type="hidden" name="proposal/grant_name" value="<x:out select="$xmlData/data/proposal/grant_name" />" />
			<input type="hidden" name="proposal/grant_code" value="<x:out select="$xmlData/data/proposal/grant_code" />" />
			<input type="hidden" id="grant_no" name="proposal/grant_no" value="<x:out select="$xmlData/data/proposal/grant_no" />" />
			<input type="hidden" name="proposal/sub_grant_code" value="<x:out select="$xmlData/data/proposal/sub_grant_code" />" />
			<input type="hidden" id="sub_grant_no" name="proposal/sub_grant_no" value="<x:out select="$xmlData/data/proposal/sub_grant_no" />" />
			<input type="hidden" name="proposal/help_grant_code" value="<x:out select="$xmlData/data/proposal/help_grant_code" />" />
			<input type="hidden" id="help_grant_no" name="proposal/help_grant_no" value="<x:out select="$xmlData/data/proposal/help_grant_no" />" />
			<c:set var="formCode"><x:out select="$xmlData/data/proposal/form_code" /></c:set>
			<c:if test="${empty formCode}"><c:set var="formCode" value="${param.formCode}"></c:set></c:if>
			<input type="hidden" name="proposal/form_code" value="${formCode}" />
		</div>
		<div id="tabnav">
			<ul>
			    <li class="down" id="tab1" onclick="changeTab(this.id)">
                    <a href="###"><span>填写说明</span></a>
                </li>

				<li class="down"  id="tab2" onclick="changeTab(this.id)" >
					<a href="###"><span>单位基本情况</span></a>
				</li>

				<li id="tab3" onclick="changeTab(this.id)" >
					<a href="###"><span>单位数据完善</span></a>
				</li>

				<li id="tab4" onclick="changeTab(this.id)" >
					<a href="###"><span>单位人员情况</span></a>
				</li>
				<li id="tab5" onclick="changeTab(this.id)" >
					<a href="###"><span>财务基本情况</span></a>
				</li>
				<li id="tab6" onclick="changeTab(this.id)" >
					<a href="###"><span>近两年科技项目情况</span></a>
				</li>

			</ul>
		</div>
		<div id="tabnav">
			<ul>
				<li id="tab7" onclick="changeTab(this.id)" >
					<a href="###"><span>近两年成果产出情况</span></a>
				</li>

				<li id="tab8" onclick="changeTab(this.id)"><a href="###"><span>社会效益与影响</span></a>
				</li>
				<li id="tab9" onclick="changeTab(this.id)"><a href="###"><span>机构运营管理</span></a>
				</li>

				<li id="tab11" onclick="changeTab(this.id)"><a href="###"><span>经费说明</span></a></li>

				<li id="tab12" onclick="changeTab(this.id)"><a href="###"><span>绩效目标</span></a></li>

				<li id="tab13" onclick="changeTab(this.id)"><a href="###"><span>预期绩效目标表</span></a></li>

				<li id="tab10" onclick="changeTab(this.id)"><a href="###"><span>附件清单</span></a></li>

			</ul>
		</div>

		<!-- 填写说明 -->
		 <div class="tab_box" id="fragment-tab1">
            <jsp:include page="../goal/prpgoaledit_xxyfjgjxpl_2021.jsp"></jsp:include>
        </div>

		<div class="tab_box" id="fragment-tab2" >
			<jsp:include page="../org/prporg_baseinfo_enterprise_new_2020_2.jsp">
				<jsp:param value="1、单位基本信息" name="title" />
				<jsp:param value="2、单位人员情况" name="title2" />
				<jsp:param value="3、单位财务状况" name="title3" />
				<jsp:param value="4、企业开展产学研合作情况" name="title4" />
				<jsp:param value="5、主营业务产品" name="title5" />
				<jsp:param value="6、知识产权情况" name="title6" />
				<jsp:param value="${xmlstr}" name="xmlstr" />
			</jsp:include>
		</div>

		<!-- 单位数据完善 -->
		<div class="tab_box" id="fragment-tab3" style="display: none">
			<jsp:include page="../goal/prpgoaledit_xxyfjgjxpl_dwsjws_2021.jsp"></jsp:include>
		</div>
		<!--上一年度单位人员情况 -->
		<div class="tab_box" id="fragment-tab4" style="display: none">
			<jsp:include page="../org/prpgoaledit_xxyfjgjxpl_2020.jsp"></jsp:include>
		</div>
		<!-- 研发基本条件 -->
		<div class="tab_box" id="fragment-tab5" style="display: none">
			<jsp:include page="../fund/prpgoaledit_xxyfjgjxpl_2020.jsp"></jsp:include>
		</div>

		<!-- 上一年度科研项目情况 -->
		<div class="tab_box" id="fragment-tab6" style="display: none">
			<jsp:include page="../fund/prpgoaledit_xxyfjgjxpl_kyxm_2020.jsp"></jsp:include>
		</div>

		<!-- 上一年度成果产出情况 -->
		<div class="tab_box" id="fragment-tab7" style="display: none">
			<jsp:include page="../fund/prpgoaledit_xxyfjgjxpl_cgcc_2020.jsp"></jsp:include>
		</div>

		<!-- 上年度社会效益与影响 -->
		<div class="tab_box" id="fragment-tab8" style="display: none">
			<jsp:include page="../goal/prpgoaledit_xxyfjgjxpl_shyx_2021.jsp"></jsp:include>
		</div>

		<!-- 机构运营管理 -->
		<div class="tab_box" id="fragment-tab9" style="display: none">
			<jsp:include page="../goal/prpgoaledit_xxyfjgjxpl_jgzc_2020.jsp"></jsp:include>
		</div>

		<!-- 经费说明 -->
		<div class="tab_box" id="fragment-tab11" style="display: none">
			<jsp:include page="../org/prporg_dfkyjctjhnljs_2019_02.jsp"></jsp:include>
		</div>

		<!-- 预期绩效目标 -->
		<div class="tab_box" id="fragment-tab12" style="display: none">
			<jsp:include page="../org/prporg_dfkyjctjhnljs_jxzb_201901.jsp"></jsp:include>
		</div>

		<!-- 预期绩效目标表 -->
		<div class="tab_box" id="fragment-tab13" style="display:none">
			<jsp:include page="../org/prporg_xxyfjgjxpj_jxzb_2019.jsp"/>
		</div>

		<div class="tab_box" id="fragment-tab10" style="display: none">
			<jsp:include page="../attach/prpAttachEdit_jcjj_2018.jsp">
				<jsp:param value="${xmlstr}" name="xmlstr" />
			</jsp:include>
			<p style="font-size: 13px"><strong>备注：</strong></p>
			<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1.递交纸质材料时，提供系统打印的申请书纸质文件，连同以上附件材料（一式三份，A4规格，正反面打印，附有目录及页码，胶装成册），签字盖章后报送归口管理部门。</p>
			<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2.递交纸质材料时，申报单位所在地归口管理部门校验以上附件材料。</p>
		</div>
	</div>
	<div class="clear_h15"></div>
</div>
</body>
</html>